<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String savePath = pageContext.getServletContext().getRealPath("/") + "DWZ/attached/";
String ocode = (String)request.getSession().getAttribute("ocode");
System.out.println("jsp  "+ocode);
%>
<div class="pageContent">
	 <form id="uploadform" method="post" action="doUploadPomrs.do" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this);">  
		<div id="upload_div" class="pageFormContent" layoutH="56">
			<dl class="nowrap">
				<dt>温馨提示：</dt>
				<dd>
					1.请点击“<font color="#FF0000">浏览</font>”或“<font color="#FF0000">选择文件</font>”选择所要上传的文件，确实无误后点击“<font color="#FF0000">上传</font>”。<br/>
					2.<font color="#FF0000">&nbsp;请注意：</font>上传的数据文件必须是“<font color="#FF0000">xls</font>”格式的文件，而且文件大小不能超过<font color="#FF0000">4M</font>！<br/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>选择文件：</dt>
				<dd>
					<input name="upfile" type="file" class="required"/>&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="hidden" name="dir" value="excel"/>
					<input type="hidden" name="savePath" value="<%=savePath%>"/>
					<input type="hidden" name="ocode" value="<%=ocode%>"/>
				</dd>
			</dl>
			<dl style="display: none;" class="nowrap">
				<dt>数据导入方式：</dt>
				<dd>
					<input type="radio" checked="checked" class="required" name="SQL_MODE" type="hidden" value="INSERT" >增量式<br/>
					<input type="radio" class="required" name="SQL_MODE" type="hidden" value="UPDATE" >覆盖式<br/>
					<input type="radio" class="required" name="SQL_MODE" type="hidden" value="INSERT_UPDATE" >没有的数据就新增，已有的数据就覆盖
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">上传</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	<div class="pageFormContent" id="upload_msg_div" style="display: none"  layoutH="56">
		<h2 class="contentTitle">上传结果</h2>
		<div id="upload_msg" style="padding: 10px;">
		
		</div>
	</div>
</div>
<script>
/*
function upload_complete(json){
	$("#uploadform",navTab.getCurrentPanel()).hide();
	$("#upload_msg_div",navTab.getCurrentPanel()).show();
	$("#upload_msg",navTab.getCurrentPanel()).html(json);
}
$(function(){
	$("#upload_msg",navTab.getCurrentPanel()).height($("#upload_div",navTab.getCurrentPanel()).height());
});
*/
</script>
